package com.cn.pojo;

import org.springframework.data.elasticsearch.annotations.GeoPointField;

import java.util.Date;

public class Hotel {
    private Long id;
    private String name;
    private Integer age;
    private String address;
    private Date time;
    private String lat;

    private String lon;

    private String latLon;

    private String location;

    public void setLatLon(String latLon) {
        this.latLon = latLon;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String lat,String lon) {
        this.location = lat+","+lon;
    }

    public String getLatLon() {
        return latLon;
    }

    public void setLatLon(String lat,String lon) {
        this.latLon = lat+","+lon;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }
}
